package com.iman.sumer.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "drm_study_note")
public class Note {
	private Long id;
	private Long course_id;
	private String note_nm;
	private String note_txt;
	private Date create_dt;
	private int share_yn;
	private Date update_dt;
	private int view_cnt;
	private int cool_cnt;
	private int del_yn;
	private Long user_id;

	@Id
	@Column(name = "id", unique = true, nullable = false, length = 20)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "course_id", unique = false, nullable = true, length = 20)
	public Long getCourse_id() {
		return course_id;
	}

	public void setCourse_id(Long course_id) {
		this.course_id = course_id;
	}

	@Column(name = "note_nm", unique = false, nullable = true, length = 100)
	public String getNote_nm() {
		return note_nm;
	}

	public void setNote_nm(String note_nm) {
		this.note_nm = note_nm;
	}

	@Column(name = "note_txt", unique = false, nullable = true, length = 1000)
	public String getNote_txt() {
		return note_txt;
	}

	public void setNote_txt(String note_txt) {
		this.note_txt = note_txt;
	}

	@Column(name = "create_dt", unique = true, nullable = true, length = 30)
	public Date getCreate_dt() {
		return create_dt;
	}

	public void setCreate_dt(Date create_dt) {
		this.create_dt = create_dt;
	}

	@Column(name = "share_yn", unique = false, nullable = true, length = 1)
	public int getShare_yn() {
		return share_yn;
	}

	public void setShare_yn(int share_yn) {
		this.share_yn = share_yn;
	}

	@Column(name = "update_dt", unique = true, nullable = true, length = 30)
	public Date getUpdate_dt() {
		return update_dt;
	}

	public void setUpdate_dt(Date update_dt) {
		this.update_dt = update_dt;
	}

	@Column(name = "view_cnt", unique = false, nullable = true, length = 10)
	public int getView_cnt() {
		return view_cnt;
	}

	public void setView_cnt(int view_cnt) {
		this.view_cnt = view_cnt;
	}

	@Column(name = "cool_cnt", unique = false, nullable = true, length = 10)
	public int getCool_cnt() {
		return cool_cnt;
	}

	public void setCool_cnt(int cool_cnt) {
		this.cool_cnt = cool_cnt;
	}

	@Column(name = "del_yn", unique = false, nullable = true, length = 1)
	public int getDel_yn() {
		return del_yn;
	}

	public void setDel_yn(int del_yn) {
		this.del_yn = del_yn;
	}

	@Column(name = "user_id", unique = false, nullable = true, length = 20)
	public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

}
